//
//  SecondController.m
//  QQ inteface
//
//  Created by dllo on 16/6/16.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SecondController.h"
#import "Photo.h"
@interface SecondController ()

@end

@implementation SecondController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor grayColor];
    self.navigationItem.title =@"第二页";
    [self imageUIimage];
}

-(void)imageUIimage{
    
    
    
    
    
    UIImage *image = [UIImage imageNamed:@"001.png"];
    UIImage *image2 = [UIImage imageNamed:@"002.png"];
    UIImage *image3 = [UIImage imageNamed:@"003.png"];
    UIImage *image4 =[UIImage imageNamed:@"004.png"];
    NSArray *array = @[image,image2,image3,image4];
    
    Photo *pho = [[Photo alloc]initWithFrame:CGRectMake(0, 0, 300, 400)];
    pho.center = self.view.center;
    pho.backgroundColor = [UIColor grayColor];
    [self.view addSubview:pho];
    pho.imageArray = array;
    [pho release];
    
    
    
}

@end
